<?php
	namespace Home\Model;
	use Think\Model;
	class PhotoModel extends Model {
		/**
		 * 获取相册记录数
		 */
		public function getCount() {
			return $this->where('is_delete=0')->count();
		}
		/**
		 * 获取指定个数相册
		 */
		public function getPhotoList($start,$offset) {
			return $this->where('is_delete=0')->limit("$start,$offset")->select();
		}
	}
